﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NPMonitor.Interfaces;
using NPMonitor.Configuration;

namespace NPMonitor.Implementation.Internal.Providers
{
	class ConfigEFJobStoreSettingsProvider : IEFJobStoreSettingsProvider
	{
        private EFJobStoreConfigurationSection configSection;

        public ConfigEFJobStoreSettingsProvider()
		{
            configSection = Helpers.Utils.GetConfigurationSection<EFJobStoreConfigurationSection>();
		}

		public string ConnectionString
		{
			get 
			{
				return configSection.ConnectionString;
			}
		}

		public TimeSpan TransactionLockTimeout
		{
			get
			{
				return configSection.TransactionLockTimeout;
			}
		}
	}
}
